<% content_for :title do%>{<%=h @image.name %>}<%end%>
<div class="post">
  <h1><%=h @image.name %></h1>
  <p><img src="<%=image_content_url(@image,:width => 550, :height => 350, :fit_width => true) %>" alt="<%=h @image.description %>" /></p>
  <p><%=h @image.description %></p>
  <p class="post-footer">
    <%= link_to 'Retour', images_path %> |
    <a href="mailto:comment@benzo.fr?subject={I=<%=h @image.permalink %>}">Laissez un commentaire</a> |
    <span class="date"><%=h @image.created_at %></span>
  </p>
</div>
<br />
<h1>Tags associés</h1>
<div class="post">
  <% @image.tags.each do |tag| %>
    <span><%= link_to "#{h tag.name}", tag %></span>
  <% end %>
</div>
<br />
<h1>Commentaires</h1>
<% @image.comments.each do |comment| %>
  <div class="post">
    <h2><%=h comment.name %></h2>
    <p><%=h comment.body %></p>
    <p class="post-footer">
      <%=h comment.email %> |
      <%= link_to 'Lire', comment %>
    </p>
  </div>

<% end %>
<br class="clear" />